#ifndef DATASINGLETON_H
#define DATASINGLETON_H

#include <random>

class DataSingleton {
	public:

		static DataSingleton* instance() {
			static DataSingleton instace;
			return &instace;
		}

	public:
		void draw();

	public:
		float h_k{0.1};
		std::mt19937_64 m_gen;
	private:
		DataSingleton() {
			std::random_device rd;  // 将用于获得随机数引擎的种子
			m_gen = std::mt19937_64(rd()); // 以 rd() 播种的标准 mersenne_twister_engine
		};
};

#endif
